﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using System.Linq;
namespace Exact_Extension
{
    public partial class InvoiceHistory : DevExpress.XtraEditors.XtraForm
    {
        ExactDataContext DS;
        ISHCMC_Invoice InvDetail;
        public InvoiceHistory(ExactDataContext _DS, ISHCMC_Invoice _InvDetail)
        {
            InitializeComponent();
            DS = _DS;
            InvDetail = _InvDetail;
        }

        private void gridControl_InvoiceHistory_Load(object sender, EventArgs e)
        {
            var query = from Track in DS.ISHCMC_InvoiceTrackings
                        where Track.StudentID == InvDetail.StudentID && Track.InvoiceHeaderID == InvDetail.InvoiceHeaderID
                        select Track;

            this.iSHCMCInvoiceTrackingBindingSource.DataSource = query;

        }

    }
}